package org.finalministry.rest.server;




/**
 * This allows cross-domain access
 * 
 * @author lussopi
 *
 */
public class CORSFilter /*implements ContainerResponseFilter*/ {
	
	// public ContainerResponse filter(ContainerRequest request,
	// ContainerResponse response) {
	// // instead of "*" you should provide a specific domain name for security
	// // reasons
	//
	//
	// return response;
	// }

	// @Override
	// public void filter(ContainerRequestContext request,
	// ContainerResponseContext response) throws IOException {
	//
	// response.getHeaders().add("Access-Control-Allow-Origin", "*");
	// response.getHeaders().add("Access-Control-Allow-Methods",
	// "PUT, GET, POST, DELETE, OPTIONS");
	// response.getHeaders().add("Access-Control-Allow-Headers",
	// "Content-Type");
	//
	// }
}